<% variant = line_item.variant -%>
<tr class="<%= cycle('', 'alt') %>">
  <td>
    <%= small_image(line_item.variant.product) %>
  </td>
  <td>              
    <h4><%= link_to variant.product.name,  product_path(variant.product) %></h4>
    <%= variant_options variant %>
    <%= truncate(variant.product.description, :length => 100, :omission => "...") %>
  </td>
  <td>
    <%= product_price(line_item) %>
  </td>
  <td>
    <%= f.text_field :quantity, :size => 3 %>
  </td>
  <td>
    <%= format_price(product_price(line_item, :format_as_currency => false) * line_item.quantity) unless line_item.quantity.nil? %>
  </td>
</tr>
